package com.chaihu.jpa.config;

import com.chaihu.jpa.repository.MyRepositoryFactoryBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.web.config.EnableSpringDataWebSupport;


/**
 * 此配置要在运行的main方法同级及以下目录，保证扫描到
 */
@Configuration
@EnableJpaRepositories(basePackages = "com.**.repository",
                            repositoryFactoryBeanClass = MyRepositoryFactoryBean.class)
@EnableSpringDataWebSupport  
public class JpaDataConfig {  
  
}  